package com.gzsxy.abstractFactory;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 客户购买
 * @date 2022/4/10 20:58
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("==========小米系统产品==========");
        xiaomiFactory xiaomiFactory = new xiaomiFactory();
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        iphoneProduct.callup();
        iphoneProduct.sendSMS();

        System.out.println("==========华为系统产品==========");
        huaweiFactory huaweiFactory = new huaweiFactory();
        IphoneProduct iphoneProduct1 = huaweiFactory.iphoneProduct();
        iphoneProduct1.callup();
        iphoneProduct1.sendSMS();


    }
}
